/*
 *@Description: 基础工具库
 *@Author: panlua
 *@Date: 2019-05-30 16:38:07
*/
module.exports = {
  /*
   *@name: 随机生成几位数 可通过传参 默认 4位
   *@param:{type} 
   *@description:
   *@return:
   *@author: panlua
   *@date: 2019-05-30 16:38:38
  */
  randomNum: (s = 4) => {
    let text = ''
    for(var i = 0; i < s; i++){
      text += Math.floor(Math.random() * 10)
    }
    return text
  }
}